import request from '@/utils/request'

export function fetchList() {
  return request({
    url: 'admin/advert/fetch',
    method: 'get'
},

export  function createBanner(data) {
  return request({
    url: 'advert/add',
    method: 'post',
    data: data
  })
}

export function deleteBanner(data) {
  return request({
    url: 'advert/delete',
    method: 'post',
    data: data
  })
}

export function fetchType(data) {
  return request({
    url: 'admin/adverttype/fetch',
    method: 'post',
    data: data
  })
}

export function createAdertType(data) {
  return request({
    url: 'admin/adverttype/create',
    method: 'post',
    data: data
  })
}
